package oge;

public class calculate {
    public static void main(String[] args) {
        int num1 = 20;
        int num2 = 10;
        int num3 = num1 + num2;
        System.out.println("num1 + num2 =" + num3);//计算两个数的合
        num3 = num1 - num2;
        System.out.println("num1 - num2 =" + num3);//计算两个数的差
        num3 = num1 * num2;
        System.out.println("num1 * num2 =" + num3);//计算两个数的积
        num3 = num1 / num2;
        System.out.println("num1 / num2 =" + num3);//计算两个数的商
    }
}
